﻿@model TCM.Room

@{
    ViewBag.Title = "Edit";
}
<table style="width: 99.9%">
        <tr>
            <td class="IndexBack">
                @Html.ActionLink(" ", "Index")</td>
            <td style="text-align: right">
              <h2>Edit Room:  @Html.DisplayFor(model => model.Name)</h2></td>
        </tr>
   
    </table>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Room</legend>
       <ol>     
         @Html.HiddenFor(Model=> Model.RoomID)

        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
       
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

        
           <li class="editor-label">
            @Html.LabelFor(model => model.Code)
      
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </li>
       @* <li class="editor-label">
            @Html.LabelFor(model => model.Description)
      
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </li>*@

        <li class="editor-label">
            @Html.LabelFor(model => model.Capacity)
      
            @Html.EditorFor(model => model.Capacity)
            @Html.ValidationMessageFor(model => model.Capacity)
        </li>

        <li class="editor-label OneColumn">
            @Html.LabelFor(model => model.Notes)
      
            @Html.TextAreaFor(model => model.Notes)
            @Html.ValidationMessageFor(model => model.Notes)
        </li>
      
        

        
           </ol> 
        <p>
            <input type="submit" value="Save" />
        </p>
        
    </fieldset>
}



 <footer class="noPrint">

          <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedBy)
       
            @Html.DisplayFor(model => model.CreatedBy)
        </li>               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.CreatedOn)
       
            @Html.DisplayFor(model => model.CreatedOn)
        </li>
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedBy)
      
            @Html.DisplayFor(model => model.ModifiedBy)
        </li>
               
        <li class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedOn)
       
            @Html.DisplayFor(model => model.ModifiedOn)
        </li>     
         </footer>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
